package com.tjetc.dao;

import com.tjetc.domain.Profit;

import java.sql.SQLException;
import java.util.List;

public interface ProfitDao {
    List<Profit> list() throws SQLException;

    List<Profit> listbydate(String startDate, String endDate) throws SQLException;

    Profit findByDate(String date) throws SQLException;

    void addProfit(Profit profit) throws SQLException;

    void updateProfit(Profit profit) throws SQLException;
}
